
#include "stdafx.h"
#ifdef _SKEYMINI
#include "resource.h"
#include "VirtualSimple3.h"
#include "VARBinary.h"
#include "UserMessage.h"

CVirtualSimple3::CVirtualSimple3(bool bSimulate)
	: CDataSimple3(bSimulate)
{
}

CVirtualSimple3::~CVirtualSimple3()
{
}

BOOL CVirtualSimple3::Create(CSKEYBid* pParentWnd)
{
	m_Owner = pParentWnd; 
#ifdef _FAN_FAN_
	InitFanBid();
#endif
	return OnInitDialog();
}

void CVirtualSimple3::setCtrlShowWarning(bool bAutoDecode)
{
	CMainPanelGetter main(this); if (!main.hasPanel()) return;
	main.PostMainMessage(WM_PadSimple3_setCtrlShowWarning, bAutoDecode);
}

void CVirtualSimple3::setCtrlSelchangePlansel(intptr_t id, LPCWSTR *pDesc)
{
	CMainPanelGetter main(this); if (!main.hasPanel()) return;
	CVARBinary data;
	if (!data.appendInt((int)id)) return;
	for (intptr_t i = 0; i < 4; i++) if (!data.appendWSTR(pDesc ? pDesc[i] : nullptr)) return;
	main.sendMainCopyData(0, CPDT_PadSimple3_setCtrlSelchangePlansel, data);
}

#endif
